package com.wutong.resonance.model.util;


import java.util.ArrayList;
import java.util.List;

/**
 * 日志工具类
 * @author wutong
 */
public class LogUtil {

    private final static List<String> LOG_LIST = new ArrayList<>();

    public static void showOnce(String logName, Runnable runnable) {
        if (LOG_LIST.contains(logName)) {
            return;
        }
        runnable.run();
        LOG_LIST.add(logName);
    }
}
